namespace CLELCore.Assembly.CLELInstructions
{
	public class Stargs : CLELInstruction
	{
		private byte _argument;
		public byte Argument
		{
			get
			{
				return _argument;
			}
			set
			{
				_argument = value;
			}
		}
		public override int Length
		{
			get
			{
				return 2;
			}
		}
		public Stargs(byte argument) : base(CLELOpcode.STARGS)
		{
			_argument = argument;
		}

		public override byte[] GetBytes(bool little_endian)
		{
			byte[] ret = new byte[2];
			ret[0] = CLELOpcode.STARGS;
			ret[1] = _argument;
			return ret;
		}
		
		public override string ToString()
		{
			return "starg.s " + _argument;
		}
	}
}
